<?php
// +----------------------------------------------------------------------
// | ManniuRead
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://manniuyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: heitao <read@manniuyun.com>
// +----------------------------------------------------------------------

namespace app\admin\validate;

use think\Validate;

class Navigator extends Validate{

    protected $rule = [
        'name'      => ['require'],
        'url'       => ['require'],
        'show'      => ['require'],
        'target'    => ['require'],
    ];

    protected $message  =   [
        'name.require'      => '名称不能为空',
        'url.require'       => 'URL不能为空',
        'show.require'      => '显示字段必选',
        'target.require'    => '新窗口打开字段必选',
    ];
}